package space.hyf.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import space.hyf.entity.User;

/**
 * @Description: 用户mapper接口
 * @ClassName: UserMapper
 * @Author: HCode
 * @Date: 2023/3/16 08:33
 * @Version: 1.0
 */
@Mapper
@Repository
public interface UserMapper {
    /**
     * 注册新用户
     */
    int addUser();

    /**
     * 通过ID查询用户
     */
    User findById(Long id);
}
